/*
 * @Description: 深化设计策划书管理接口
 * @Author: wind-lc
 * @version: 1.0
 * @Date: 2021-08-18 15:14:27
 * @LastEditTime: 2021-08-24 19:54:59
 * @FilePath: \cscec-pms-admin\src\api\design\deepDesign\planningManagement\index.js
 */
import request from '@/utils/request2'
import { projectApiUrl } from '@/api/config'
const api = {
  getDesignType: projectApiUrl + '/plan-label',
  add: projectApiUrl + '/deepen/design/list',
  list: projectApiUrl + '/deepen/design/list/list',
  statistics: projectApiUrl + '/deepen/design/list_total/list_total',
  detail: projectApiUrl + '/deepen/design/list_detail',
  update: projectApiUrl + '/deepen/design/list/update',
  audit: projectApiUrl + '/deepen/design/audit-assessment-form',
  delete: projectApiUrl + '/deepen/design/delete'
}
export default {
  /**
   * @description: 获取项目设计管理类别
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  getDesignType: data => {
    return request({
      url: api.getDesignType,
      method: 'get',
      params: data
    })
  },
  /**
   * @description: 新增深化设计策划书
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  add: data => {
    return request({
      url: api.add,
      method: 'post',
      data
    })
  },
  /**
   * @description: 深化设计策列表查询
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  list: data => {
    return request({
      url: api.list,
      method: 'post',
      data
    })
  },
  /**
   * @description: 深化设计策统计查询
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  statistics: data => {
    return request({
      url: api.statistics,
      method: 'post',
      data
    })
  },
  /**
   * @description: 获取深化设计策划书详情
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  detail: data => {
    return request({
      url: api.detail,
      method: 'get',
      params: data
    })
  },
  /**
   * @description: 编辑深化设计策划书
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  update: data => {
    return request({
      url: api.update,
      method: 'post',
      data
    })
  },
  /**
   * @description: 审批
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  audit: data => {
    return request({
      url: api.audit,
      method: 'post',
      data
    })
  },
  /**
   * @description: 删除
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  delete: data => {
    return request({
      url: api.delete,
      method: 'post',
      data
    })
  }
}